import Vue from 'vue'
import Vuex from 'vuex'
Vue.use(Vuex)

const actions = {}
const mutations = {
    SET_COMPETITIONID(state, competition_id) {
        state.competition_id = competition_id;
    },
    SET_USERNAME(state, username) {
        state.username = username;
    },
    SET_ID(state, id) {
        state.id = id;
    },
    SET_PHONE(state, phone) {
        state.phone = phone;
    },
    SET_POINTS(state, points) {
        state.points = points;
    },
};
const state = {
    username: '',
    id: 3,
    phone: '',
    points: '',
    vabNum:0,
    companyId:1,

};

export default new Vuex.Store({
    actions,
    mutations,
    state,
})
